<template>
  <el-form-item prop="videoId" label="视频序列号">
    <el-select v-model="optionModel.videoId" placeholder="Select" style="width: 240px">
      <el-option v-for="item in videoList" :key="item" :label="item" :value="item" />
    </el-select>
  </el-form-item>
</template>

<script>
import { GET_AUDIO_RESOURCE_LIST, GET_AUDIO_RESOURCE_LIST_RESULT } from '@/designer/event'

export default {
  name: 'VideoIdEditor',
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object
  },
  data() {
    return {
      videoList: []
    }
  },
  computed: {},
  mounted() {
    this.$emitter.on(GET_AUDIO_RESOURCE_LIST_RESULT, (list) => {
      this.videoList = list
    })
    this.$emitter.emit(GET_AUDIO_RESOURCE_LIST)
  }
}
</script>

<style lang="scss"></style>
